package com.autonomous_printer.config;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliPayConfig {


    @Bean
    AlipayClient AliPayBean() {

        AlipayClient alipayClient = new DefaultAlipayClient(
                "https://openapi.alipaydev.com/gateway.do",
                "2016102400753541",
                "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCnjbkXKi1ZVtIxfdU2Aa2whKflpFU+SuQyVUZHLwat3BbnbRKc18viu4xwYlBpHR3bSVy7U+G4z4LVSUy9IbmbDaNsvIoUqsG0ER0J2zrXyMFVMFqviX/ah7VZOr5+HE78lu3w6RwCk+fmytNn2zgsdnxHbzg6znakYsIgo0FuDC/+VMbJNfYYmRdslcmVPJ2oBSQ+FTJ72r01cqSmagapm7GT4hP6pJtmyWcPUSM9sm496omuNQ2EnOtoAiXr5tc7XXndO+fUwnYpgCk8BQA7gL5wjzel2PlOEIMAbs3ufa0ZTmVcUUviZQThQbXVtL2XFnBZRm745yn3jK0J1P5dAgMBAAECggEAYM/PkWXqXAOBYd1OE2122VZc2KBSLLMDFV4WRE0Us+JGTaPFLGC3yqMJK2pzAbk0Jh9GeGqoMqub8fbvYxyYbNG9ireJpRVg5NU6jRZh8oppwvo0e9abzD27d/osVRuwO9xNUXSvnYGubbjl281bsL0pY/EMcVYYUTVK66bIyHdLAQLOh6QqF4vmkIqN1HMpHnI6R/h3Lcy8C++BBlIGv/0wb3OvDS5FDuRWtdQMXQuBgABY4J6FaU2mgoeQs4U8ZVBTrwVtLdIdFpvbK7auwIIOBxhF8+e2/AW8GiUBUFjKKnw4Lid0zh25xg8FNn6rgzBt2AAQhi5+HRKBufuAVQKBgQDrNw1PKjoAO0pqqefrvgLejDkFYoH2zy2+WAYtJu1bRzAHFNbMWk7KgCK1SZQctOS0y6x3KQelVDeWs6L8K45FmDEBEWy5NIHn0AOFy3OAal/gVyNwTxGk71eTPEjWBJnZlROD90jhLDs0xpQ/e4nTtj1LWl18h5TdVdM6hHPRcwKBgQC2XA8RRwn02jRNJoK+3TOxKFXy4tSzaHMINBN8PQD8Tr28U335n+FNyx6kWE0MzP2uAsUBjTTGlk9cSeSudZ9fScgNJXIyYhZdRuVXAGmfaE7egrvuTilGyH4NP+RQZkTc8FWpO42Jx2tX3QQ0WkpEzSDTbyKLAVqZaC5604y87wKBgESSfhzQMKyUnHNQKT6+3FNJCe6Z802ixLEzNEnBiX0M2eGWn7Bfu4yponS7iKR90BctMZBjs8jtLm+O2zss74M2hULMc6fiuOR97ij5USjk2iKrBLffNUOiSyOvdYR/PuMB5PiaBPMwU+pk4h9Hwryn6mKna428cRe9x6DNsH4lAoGANwTtctwJD/vpvcE5v1ZD61ZtIBv56qs/0aDMpDZPntAvBKv4HSF0u6Dl/NW7YXpTq3WgdMhivOvKw+Bzg4NvczNyjSzYGIVpk/j45tf0BilVamLtSogAgh+pkFvPicZhTnugjK+wE3q8U0UWqKj5MWrmVYR5WpEtAY3iQCKlmrcCgYBzJQlxZvSDiuRHDfdh6dhE1gdzx3hlYN+/Uf3yBLeHsvibP6lNKDaBLxHYVwNOqCvae5k2WbecsieS3VYMlcL23Ow80viqiObEt/qxfu3b06xaT2RK2f3prtGXGLiGXfmS5gMgF9qnbP3Xrdbo4P7iZnj46KMlNMYrvvbH/PPhTg==",
                "json",
                "utf-8",
                "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvLLw8Y9w9MfXIMt1ij8trzWYTlP1TmACtYSXuSMKASVG0Zqa73r2jmG5SJcSpNWNWXNsHG0hMfgqUqF75vsGGTsK9CpBTNji5dKZeSIVF+Yh81ZLXqm6wn8L/xJOIcW46PtP8rMeRnFfy1EitLRUQkpmrC63hipVvQc8Pp9NAScSv2uUGk9See41oIkhAsdG1cU/n+tUUs2JZ1r1/Husgx9k2+sYXtadH224MAzY4z3qYbph7E/gN/bge9NsDdYfOiQCRjXRztDoTUF5pyZGeM2LmAi+KhvAPPq6IlYE1aRaAEux6jBAGg2GlTKvthomg2FUuYhnI0lS1QO2yXwyVwIDAQAB",
                "RSA2");
        return alipayClient;
    }
}
